<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2022/10/7
  Time: 23:50
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html lang="ee">
  <head>
    <title>user</title>
  </head>
  <body>

  <jsp:useBean id="user" scope="application" type="com.example.web4.User"/>
  <c:set target="${user}" property="username" value="张三"/>
  <c:set target="${user}" property="password" value="123456"/>
  <table border="1" width="500">
    JSTL输出：
  <hr>
  用户名：
  <c:out value="${user.username}"/><br>
    密码：
  <c:out value="${user.password}"/>
    <hr>
    ET输出：
    <hr>
    用户名：
        ${user.username}
    <br>
    密码：
        ${user.password}
    <hr>
  </table>
  </body>
</html>
